﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.WMS.Common.ValidateRules
{
    public class RequireAttribute : BaseAbstractAttribute
    {
        public RequireAttribute(string? message) : base(message)
        {

        }

        public override (bool, string?) DoValidate(object? value)
        {
            return value == null ? (false, Message) : (true, string.Empty);      
        }  


    }
}
